package com.example.websocket.websocket.service.impl;

import com.example.websocket.websocket.entity.UserChat;
import com.example.websocket.websocket.mybatis.dao.UserChatDAO;
import com.example.websocket.websocket.service.UserChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserChatServiceImpl implements UserChatService {

    @Autowired
    private UserChatDAO userChatDAO;

    @Override
    public boolean insert(UserChat userChat) {
        if (userChatDAO.insert(userChat) > 0) {
            return true;
        }
        return false;
    }
}
